home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / loanapp / loanf4.frm < prev    next >
Text File  |  1995-05-07  |  8KB  |  253 lines

  1. VERSION 2.00
  2. Begin Form Form4 
  3.    BackColor       =   &H00808080&
  4.    ClientHeight    =   3660
  5.    ClientLeft      =   165
  6.    ClientTop       =   2100
  7.    ClientWidth     =   8880
  8.    ControlBox      =   0   'False
  9.    Height          =   4065
  10.    Left            =   105
  11.    LinkMode        =   1  'Source
  12.    LinkTopic       =   "Form4"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   3660
  16.    ScaleWidth      =   8880
  17.    Top             =   1755
  18.    Width           =   9000
  19.    Begin CommandButton Command3 
  20.       Caption         =   "Cancel"
  21.       Height          =   285
  22.       Left            =   4995
  23.       TabIndex        =   13
  24.       Top             =   3150
  25.       Width           =   3000
  26.    End
  27.    Begin CommandButton Command1 
  28.       Caption         =   "OK"
  29.       Height          =   300
  30.       Left            =   885
  31.       TabIndex        =   12
  32.       Top             =   3150
  33.       Width           =   3000
  34.    End
  35.    Begin PictureBox Picture5 
  36.       Height          =   900
  37.       Left            =   3795
  38.       ScaleHeight     =   870
  39.       ScaleWidth      =   5010
  40.       TabIndex        =   14
  41.       Top             =   2010
  42.       Width           =   5040
  43.       Begin CheckBox Check1 
  44.          Caption         =   "Secondary Residence"
  45.          Height          =   225
  46.          Index           =   3
  47.          Left            =   1740
  48.          TabIndex        =   18
  49.          Top             =   555
  50.          Width           =   2190
  51.       End
  52.       Begin CheckBox Check1 
  53.          Caption         =   "Primary Residence"
  54.          Height          =   240
  55.          Index           =   2
  56.          Left            =   1740
  57.          TabIndex        =   17
  58.          Top             =   300
  59.          Width           =   1890
  60.       End
  61.       Begin CheckBox Check1 
  62.          Caption         =   "Investment"
  63.          Height          =   255
  64.          Index           =   1
  65.          Left            =   1740
  66.          TabIndex        =   16
  67.          Top             =   45
  68.          Width           =   1290
  69.       End
  70.       Begin Label Label5 
  71.          Caption         =   "Property will be:"
  72.          Height          =   210
  73.          Left            =   45
  74.          TabIndex        =   15
  75.          Top             =   45
  76.          Width           =   1455
  77.       End
  78.    End
  79.    Begin PictureBox Picture4 
  80.       Height          =   900
  81.       Left            =   1920
  82.       ScaleHeight     =   870
  83.       ScaleWidth      =   1770
  84.       TabIndex        =   3
  85.       Top             =   2010
  86.       Width           =   1800
  87.       Begin PictureBox BEditF4 
  88.          FontBold        =   -1  'True
  89.          FontItalic      =   0   'False
  90.          FontName        =   "MS Sans Serif"
  91.          FontSize        =   9.75
  92.          FontStrikethru  =   0   'False
  93.          FontUnderline   =   0   'False
  94.          Height          =   495
  95.          Index           =   4
  96.          Left            =   45
  97.          ScaleHeight     =   465
  98.          ScaleWidth      =   1650
  99.          TabIndex        =   11
  100.          Top             =   330
  101.          Width           =   1680
  102.       End
  103.       Begin Label Label4 
  104.          Caption         =   "Year Built:"
  105.          Height          =   225
  106.          Left            =   45
  107.          TabIndex        =   7
  108.          Top             =   45
  109.          Width           =   990
  110.       End
  111.    End
  112.    Begin PictureBox Picture3 
  113.       Height          =   900
  114.       Left            =   45
  115.       ScaleHeight     =   870
  116.       ScaleWidth      =   1770
  117.       TabIndex        =   2
  118.       Top             =   2010
  119.       Width           =   1800
  120.       Begin PictureBox BEditF4 
  121.          FontBold        =   -1  'True
  122.          FontItalic      =   0   'False
  123.          FontName        =   "MS Sans Serif"
  124.          FontSize        =   9.75
  125.          FontStrikethru  =   0   'False
  126.          FontUnderline   =   0   'False
  127.          Height          =   495
  128.          Index           =   3
  129.          Left            =   45
  130.          ScaleHeight     =   465
  131.          ScaleWidth      =   1650
  132.          TabIndex        =   10
  133.          Top             =   330
  134.          Width           =   1680
  135.       End
  136.       Begin Label Label3 
  137.          Caption         =   "Number of Units:"
  138.          Height          =   225
  139.          Left            =   45
  140.          TabIndex        =   6
  141.          Top             =   45
  142.          Width           =   1515
  143.       End
  144.    End
  145.    Begin PictureBox Picture2 
  146.       Height          =   900
  147.       Left            =   45
  148.       ScaleHeight     =   870
  149.       ScaleWidth      =   8760
  150.       TabIndex        =   1
  151.       Top             =   1035
  152.       Width           =   8790
  153.       Begin PictureBox BEditF4 
  154.          FontBold        =   -1  'True
  155.          FontItalic      =   0   'False
  156.          FontName        =   "MS Sans Serif"
  157.          FontSize        =   9.75
  158.          FontStrikethru  =   0   'False
  159.          FontUnderline   =   0   'False
  160.          Height          =   495
  161.          Index           =   2
  162.          Left            =   45
  163.          ScaleHeight     =   465
  164.          ScaleWidth      =   8640
  165.          TabIndex        =   9
  166.          Top             =   330
  167.          Width           =   8670
  168.       End
  169.       Begin Label Label2 
  170.          Caption         =   "Purpose of Loan:"
  171.          Height          =   225
  172.          Left            =   45
  173.          TabIndex        =   5
  174.          Top             =   45
  175.          Width           =   1575
  176.       End
  177.    End
  178.    Begin PictureBox Picture1 
  179.       Height          =   900
  180.       Left            =   45
  181.       ScaleHeight     =   870
  182.       ScaleWidth      =   8760
  183.       TabIndex        =   0
  184.       Top             =   60
  185.       Width           =   8790
  186.       Begin PictureBox BEditF4 
  187.          FontBold        =   -1  'True
  188.          FontItalic      =   0   'False
  189.          FontName        =   "MS Sans Serif"
  190.          FontSize        =   9.75
  191.          FontStrikethru  =   0   'False
  192.          FontUnderline   =   0   'False
  193.          Height          =   495
  194.          Index           =   1
  195.          Left            =   45
  196.          ScaleHeight     =   465
  197.          ScaleWidth      =   8640
  198.          TabIndex        =   8
  199.          Top             =   330
  200.          Width           =   8670
  201.       End
  202.       Begin Label Label1 
  203.          Caption         =   "Legal Description of Property:"
  204.          Height          =   255
  205.          Left            =   45
  206.          TabIndex        =   4
  207.          Top             =   45
  208.          Width           =   2580
  209.       End
  210.    End
  211. End
  212.  
  213. Sub Check1_Click (Index As Integer)
  214.     If Form4.Visible = True Then
  215.         If Form4.Check1(Index).Value = 1 Then
  216.             For i = 1 To 3
  217.                 If i <> Index Then
  218.                     Form4.Check1(i).Value = 0
  219.                 End If
  220.             Next i
  221.         End If
  222.     End If
  223. End Sub
  224.  
  225. Sub Command1_Click ()
  226.     MainRec.C.C1 = Form4.BEditF4(1).Text
  227.     MainRec.C.C2 = Form4.BEditF4(2).Text
  228.     MainRec.C.C3 = Form4.BEditF4(3).Text
  229.     MainRec.C.C4 = Form4.BEditF4(4).Text
  230.     For i = 1 To 3
  231.         If Form4.Check1(i).Value = 1 Then
  232.             MainRec.C.CC1 = i
  233.             MainRec.C.C5 = Form4.Check1(i).Caption
  234.             Exit For
  235.         Else
  236.             MainRec.C.CC1 = 0
  237.             MainRec.C.C5 = ""
  238.         End If
  239.     Next i
  240.     UpdateLabelC
  241.     Form4.Hide
  242. End Sub
  243.  
  244. Sub Command3_Click ()
  245.     Form4.Hide
  246. End Sub
  247.  
  248. Sub Form_Load ()
  249.     Form4.Left = 300
  250.     Form4.Top = (Screen.Height - Form4.Height) / 2
  251. End Sub
  252.  
  253.